package com.dmap.analysispoint.service.impl;

import com.dmap.analysispoint.dao.BurialPointMapper;
import com.dmap.analysispoint.po.BurialPoint;
import com.dmap.analysispoint.service.AddBurialPointInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * \* @author:zhouhao
 * \* Date:23/05/2018
 * \* Description:
 * \*
 */
@Service
public class AddBurialPointInfoServiceImpl implements AddBurialPointInfoService {

    @Resource
    private BurialPointMapper burialPointMapper;

    @Override
    public Integer insertBaseBurialPointInfo(List<BurialPoint> param) {
        if (param.size() == 0) {
            return 0;
        }
        return burialPointMapper.insertBatch(param);
    }
}
